#!/bin/bash
start(){
	/usr/local/mongodb/bin/mongod -f /usr/local/mongodb/conf/mongodb.conf
}
stop(){
	/usr/local/mongodb/bin/mongod --shutdown -f /usr/local/mongodb/conf/mongodb.conf
} 

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	restart|reload) 
		stop
		start
		;;
	*)
		echo $"Usage:$0 {start | stop | restart |reload}"
		exit 1
		;;
esac